package com.moba.emums.userMoneyApply;

/** @创建人: li, bai, qiang @创建时间: 2019-3-6 11:57 */
public enum OptType {
  opt_type_100("GHMI", 100),
  opt_type_500("GUSD", 500);

  public static String getName(int index) {
    for (OptType c : values()) {
      if (c.getIndex() == index) {
        return c.name;
      }
    }
    return null;
  }

  private OptType(String name, int index) {
    this.name = name;
    this.index = index;
  }

  private String name;

  private int index;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getIndex() {
    return index;
  }

  public void setIndex(int index) {
    this.index = index;
  }
}
